import { sytRequest } from "@/request";
// GET /admin/user/{page}/{limit}获取用户分页列表
export const getUserList = async(page:number,limit:number,params?:any)=>{
    return await sytRequest.get(`/user/${page}/${limit}`,{
        params
    })
}
// GET /admin/user/lock/{userId}/{status}
export const getUserLock = async(userId:number,status:number)=>{
    status = status === 0?1:0;
    return await sytRequest.get(`/user/lock/${userId}/${status}`)
}

// GET /admin/user/approval/{userId}/{authStatus}
export const getUserApproval = async(userId:number,authStatus:number)=>{
    return await sytRequest.get(`/user/approval/${userId}/${authStatus}`)
}

// GET /admin/user/show/{userId}
export const getUserById = async(userId:number)=>{
    return await sytRequest.get(`/user/show/${userId}`)
}
